diff --git a/MobileFrontend.body.php b/MobileFrontend.body.php
index d9c2661..ad5322d 100644
--- a/MobileFrontend.body.php
+++ b/MobileFrontend.body.php
@@ -25,6 +25,7 @@ class ExtMobileFrontend {
public static $searchField;
public static $disableImagesURL;
public static $enableImagesURL;
+ public static $historyURL;
public static $viewNormalSiteURL;
public static $currentURL;
public static $displayNoticeId;
@@ -118,6 +119,7 @@ class ExtMobileFrontend {
'mobile-frontend-footer-contact',
'mobile-frontend-footer-sitename',
'mobile-frontend-footer-license',
+ 'mobile-frontend-history',
);
public function __construct() {
@@ -264,6 +266,7 @@ class ExtMobileFrontend {
self::$disableImagesURL = $wgRequest->escapeAppendQuery( 'disableImages=1' );
self::$enableImagesURL = $wgRequest->escapeAppendQuery( 'enableImages=1' );
+ self::$historyURL = $wgRequest->escapeAppendQuery( 'action=history' );
self::$viewNormalSiteURL = $this->getDesktopUrl( wfExpandUrl( $wgRequest->escapeAppendQuery( 'useformat=desktop' ) ) );
self::$currentURL = $wgRequest->getFullRequestURL();
self::$leaveFeedbackURL = $wgRequest->escapeAppendQuery( 'mobileaction=leave_feedback' );
@@ -1143,6 +1146,7 @@ class ExtMobileFrontend {
'disableImages' => self::$disableImages,
'disableImagesURL' => self::$disableImagesURL,
'enableImagesURL' => self::$enableImagesURL,
+ 'historyURL' => self::$historyURL,
'logoutHtml' => $logoutHtml,
'loginHtml' => $loginHtml,
'code' => self::$code,
diff --git a/MobileFrontend.i18n.php b/MobileFrontend.i18n.php
index a5e749e..b51bc9e 100644
--- a/MobileFrontend.i18n.php
+++ b/MobileFrontend.i18n.php
@@ -83,6 +83,7 @@ $messages['en'] = array (
'mobile-frontend-footer-sitename' => 'Wikipedia',
'mobile-frontend-footer-license' => 'Content available under CC BY-SA 3.0
Terms of Use',
'mobile-frontend-footer-contact' => 'Contact',
+ 'mobile-frontend-history' => 'History',
);
/** Message documentation (Message documentation)
@@ -129,6 +130,7 @@ $messages['qqq'] = array(
'mobile-frontend-footer-contact' => 'Label for contact in footer',
'mobile-frontend-footer-sitename' => 'Name of site',
'mobile-frontend-footer-license' => 'License shown in footer',
+ 'mobile-frontend-history' => 'Label to history page link',
);
/** Ṫuroyo (Ṫuroyo)
diff --git a/templates/FooterTemplate.php b/templates/FooterTemplate.php
index 1e630fd..852c275 100644
--- a/templates/FooterTemplate.php
+++ b/templates/FooterTemplate.php
@@ -39,9 +39,12 @@ class FooterTemplate extends MobileFrontendTemplate {
$privacyLink = $this->getCustomFooterLink( $skin, 'mobile-frontend-privacy-link-text', 'privacypage' );
$aboutLink = $this->getCustomFooterLink( $skin, 'mobile-frontend-about-link-text', 'aboutpage' );
+ $historyLink = $this->data['historyURL'];
+ $historyLinkLabel = $this->data['messages']['mobile-frontend-history'];
$normalFooter = <<